﻿using WMLogistics.Model;
using WMLogistics_Dao;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMLogistics.Service
{
    public class CityBaseService
    {
        private CityBaseDao dao = new CityBaseDao();
        /// <summary>
        /// 新增数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool CityBaseAdd(wuliu_city_base model)
        {
            return dao.CityBaseAdd(model) == 1;
        }

        /// <summary>
        /// 更新数据
        /// </summary>
        /// <param name="model"></param>
        public void CityBaseUpdate(wuliu_city_base model)
        {
            dao.CityBaseUpdate(model);
        }

        /// <summary>
        /// 获取城市数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public List<wuliu_city_base> GetCityBaseList(wuliu_city_base model)
        {
            return dao.GetCityBaseList(model);
        }
    }
}
